package demo.IOStream;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/8/15-08-15-20:08
 * @Description：demo.IOStream
 */
public class properties_learn {
    public static void main(String[] args) {
        BufferedReader reader = null;
        try {
            reader = new BufferedReader(new FileReader("message.txt"));
            String str = null;
            while((str = reader.readLine())!= null){
                String[] s = str.split("=");
                System.out.println(s[0] + "  --->  " + s[1]);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
            try {
                if(reader != null){
                    reader.close();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
